<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/6/3
 * Time: 15:48
 */

namespace app\admin\model;


class ShopRelationCategory extends Base {
    public function categoryName(){
        return $this->hasOne("ShopCategory","id",'category_id')->bind("category");
    }
}